|
|
|
|
|
|
|
BOOL fAnyOperationsAborted;
LPVOID hNameMappings;
LPCSTR lpszProgressTitle;
} SHFILEOPSTRUCT, FAR *LPSHFILEOPSTRUCT; |
|
|
|
|
|
|
|
|
The only parameter that is unclear here is the FILEOP_FLAGS data type, which is defined as follows: |
|
|
|
|
|
|
|
|
typedef WORD FILEOP_FLAGS; |
|
|
|
|
|
|
|
|
I'm in a generous mood, so rather than force you to figure out the structure declaration on your own, here is the declaration provided by Microsoft in the win32api.txt file that comes with Visual Basic: |
|
|
|
|
|
|
|
|
Type SHFILEOPSTRUCT
hwnd As Long
wFunc As Long
pFrom As String
pTo As String
fFlags As Integer
fAnyOperationsAborted As Long
hNameMappings As Long
lpszProgressTitle As String ' only used if FOF_SIMPLEPROGRESS
End Type |
|
|
|
|
|
|
|
|
The SHFILEOPSTRUCT Structure |
|
|
|
|
|
|
|
|
This SHFILEOPSTRUCT structure uses a variety of constants to define the operation to perform. The wFunc field should be set to one of the following four values, which define the main operations: |
|
|
|
|
|
|
|
|
Private Const FO_MOVE = &H1
Private Const FO_COPY = &H2
Private Const FO_DELETE = &H3
Private Const FO_RENAME = &H4 |
|
|
|
|
|
|
|
|
Fortunately, these constants are self-explanatory. |
|
|
|
|
|
|
|
|
The fFlags field should be set to one or more of the following constants combined using the Or operator. This field modifies the operation of the function: |
|
|
|
|
|
|
|
|
Private Const FOF_MULTIDESTFILES = &H1
Private Const FOF_CONFIRMMOUSE = &H2 |
|
|
|
|
|